﻿package com.winmastergames.multiplayer
{
	import com.winmastergames.lolgame.multiplayerHud;
	import com.winmastergames.multiplayer.SocketClient;
	import flash.display.Stage;
	import flash.display.MovieClip;
	import com.winmastergames.lolgame.mapDefault;
	import com.winmastergames.lolgame.engine;
	
	public class MultiplayerClient
	{
		public var clientSocketConnection:SocketClient;
		public var hud:multiplayerHud;
		public function MultiplayerClient(host:String, msgPort:int,securityPort:int, mapRef:mapDefault, stageRef:Stage)
		{
			hud = new multiplayerHud(engine.st_stage);
			clientSocketConnection = new SocketClient(host, msgPort, mapRef,stageRef,hud);
		}
		public function start()
		{
			clientSocketConnection.connect();
		}
		public function sendMsg(input:String):void {
			if (input != "") {
				clientSocketConnection.sendMessage(input);
			}
		}
	}
}